module.exports = {
    lintOnSave: false,
    devServer: {
        host : "localhost",
        port: 8888,
        inline: true,  //热更新
        hot:true,
        open: true,
        overlay: {
            warning: false,
            errors: false
        }
    },
    chainWebpack: config => {
        // 修复HMR
        config.resolve.symlinks(true);
    },
    css: {
        // 提取 CSS 在开发环境模式下是默认不开启的，因为它和 CSS 热重载不兼容。
        // extract: true,
        loaderOptions: {
            // pass options to sass-loader
            less: {
                // @/ is an alias to src/
                // so this assumes you have a file named `src/variables.scss`
                data: ` 
               @import "@/assets/css/variable.less"; 
               @import "@/assets/css/common.less";
               @import "@/assets/css/mixin.less";
              `
            }
        }
    },
}
